/*
 * printorderlineBO.java
 *
 * Created on March 30, 2007, 8:34 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.mystuff.printconversion;

/**
 *
 * @author Sam Griffiths
 */
public class printorderlineBO {
    
    //initialize variables        
    private int quantity;
    private String revid;
    private String printformatid;
    private String photosetid;
    private boolean dirty = false;   
    private boolean alreadyInDatabase = false;
    
    /** Creates a new instance of customerBO */
    public printorderlineBO() {
    }
        
    //creates a new instance of storeBO
    public printorderlineBO(String revid) {
    this.revid = revid;
    }
    
    //returns storeid
    public String getRevId() {
        return revid;
    }

    //returns the id of the manager of the said store
    public String getPrintFormatId() {
        return printformatid;
    }

    //sets the manager id of the store bo
    public void setPrintFomratId(String managerid) {
        this.printformatid = printformatid;
        setDirty(true);
    }

    //returns store address
    public String getPhotoSetId() {
        return photosetid;
    }

    //sets store address
    public void setPhotoSetId(String photosetid) {
        this.photosetid = photosetid;
        setDirty(true);
    }
    
    //returns store as a string
    public String toString(){
        return "rev id       : "+ this.getRevId()+" \n"+
               "PrintFormatid: "+ this.getPrintFormatId()+" \n"+
               "PhotoSet id  : "+ this.getPhotoSetId() +" \n";
    }

    //returns if object has been changed since read or saved
    public boolean isDirty() {
        return dirty;
    }

    //sets dirty
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

    //returns if object is already in database
    public boolean isAlreadyInDatabase() {
        return alreadyInDatabase;
    }

    //sets if object is already in database
    public void setAlreadyInDatabase(boolean alreadyInDatabase) {
        this.alreadyInDatabase = alreadyInDatabase;
    }
}